<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>  
    <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
 <base href="<%=basePath%>">
<meta charset="UTF-8">
	<link rel="stylesheet" href="css/font-awesome.css" type="text/css" media="all">
	<link rel="stylesheet" href="css/owl.carousel.css" type="text/css" media="all" />
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
	<link href="http://fonts.googleapis.com/css?family=Molle:400i&amp;subset=latin-ext" rel="stylesheet">
	<link href="http://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&amp;subset=latin-ext" rel="stylesheet">
	<link href="http://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&amp;subset=latin-ext"
	    rel="stylesheet">
	<style type="text/css">
	*{font-weight: bold;}
	input{width:550px;}
	input[type="submit"]{background-color: black;color:white;width:100px;}
	form{margin-left: 320px;}
	</style>
</head>
<body>
<fieldset>
<legend>注册账号</legend>
<form:form modelAttribute="user" 
    action="insertUser" method="post">
               登录账号：<form:input path="username"/><br>
               <form:errors path="username" style="color:red;"/> <br>
               输入密码：<form:password path="userpass"/><br>
                <form:errors path="userpass" style="color:red;"/><br> 
               确认密码：<form:password path="userpass1"/><br> 
               <form:errors path="userpass" style="color:red;"/><br>  
               用户电话：<form:input path="usertel"/><br>
                <form:errors path="usertel" style="color:red;"/>    <br> 
               用户地址：<form:input path="address"/><br> 
               <form:errors path="address" style="color:red;"/>  <br>  
                 用户姓名：<form:input path="realname"/>
                 <br> <form:errors path="address" style="color:red;"/>  <br>  
               <input type="submit" value="注册"  />
</form:form>
</fieldset>
</body>
</html>